import service from "../index";

export const getInfoTemp = async () => {
  return await service({
    method: "get",
    url: "/info/getInfoTemp",
  });
};

//新增模板
export const addInfoTemp = async (params: any) => {
  return await service({
    method: "post",
    url: "/info/addInfoTemp",
    data: params,
  });
};

//修改模板
export const updateInfoTemp = async (params: any) => {
  return await service({
    method: "post",
    url: "/info/updateInfoTemp",
    data: params,
  });
};

//删除模板
export const deleteInfoTemp = async (id: number) => {
  return await service({
    method: "get",
    url: "/info/deleteInfoTemp?id=" + id,
  });
};

//批量删除模板
export const batchDeleteInfoTemp = async (params: any) => {
  return await service({
    method: "post",
    url: "/info/batchDeleteInfoTemp",
    data: params,
  });
};

//消息记录
export const getInfoLogList = async () => {
  return await service({
    method: "get",
    url: "/info/getInfoLogList",
  });
};

//添加消息记录
export const addInfoLog = async (params: any) => {
  return await service({
    method: "post",
    url: "/info/addInfoLog",
    data: params,
  });
};

//搜索消息记录
export const searchInfoLog = async (params: any) => {
  return await service({
    method: "post",
    url: "/info/searchInfoLog",
    data: params,
  });
};
